home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / LORD2B6.ZIP / GENRAN.REF < prev    next >
Text File  |  1997-05-16  |  3KB  |  179 lines

  1. ;general random stuff that is usually called from any major tavel route
  2. ;where roads are
  3.  
  4.  
  5. @#GENRAN
  6. @do `p20 random 2 1
  7.  
  8.  
  9. @if `p20 is 1 then do
  10.  @begin
  11.  @run event1
  12.  @end
  13.  
  14. @if `p20 is 2 then do
  15.   @begin
  16.   @run event2
  17.   @end
  18.  
  19. @#event2
  20. @do moveback
  21. @do write
  22. `r1
  23. @clearblock 21 21
  24. @do move 3 21
  25. @do write
  26. `r0  `2A dark robed priest approaches.  Speak with him? [`0Y`2/`0N`2] :`x
  27. @do readspecial `s01 YN
  28.  
  29. @if `s01 is Y then do
  30.   @begin
  31.   @label ev1
  32.   @show
  33. `r0`c  `r1  A deal, perhaps?  `r0
  34.  
  35.   `0"Greetings fellow traveler.  Would you be interested in a traveling
  36.   potion for `$$500`0?" `2the priest asks.
  37.  
  38. @do write
  39. `x`x
  40. @choice
  41. Exactly how does it work, strange dark robed priest?
  42. >&money 499 Yes, I'll take it!
  43. >&money 499 No thanks.
  44. <&money 500 I can't afford it.
  45. @if response is 1 then do
  46.   @begin
  47.   @show
  48. `r0`c  `r1  How it works  `r0
  49.  
  50.   `0"It's really very simple young s&man, first you drink it.  Then you
  51.   wait.  You will be randomly teleported to one of ten various places."
  52.  
  53.   `$"What if I don't like where I am?"
  54.  
  55. `k  `0"Then you're pretty much screwed, aren't you," `2he laughs.
  56.  
  57.   `$"Hey!  A priest isn't supposed to talk like that!" `2you accuse.
  58.  
  59. `k  `0"We're also not supposed to sell illegal drugs, what's your point?"
  60.  
  61. `k
  62.   @do goto ev1
  63.   @end
  64.  @if response is 2 then do
  65.    @begin
  66.    @show
  67. `\`\  `0"Great doing business with you," `2he smiles as he hands you a
  68.   funny looking vial.
  69. `\`k
  70.    @drawmap
  71.    @update
  72.    @do `i50 + 1
  73.    @do money - 500
  74.    @closescript
  75.    @end
  76.   
  77.  
  78.  
  79.  @if response is 3 then do
  80.    @begin
  81.    @show
  82. `\`\  `0"Maybe next time, friend," `2he smiles.
  83. `\`k
  84.    @drawmap
  85.    @update
  86.    @closescript
  87.    @end
  88.  
  89.  
  90.  @if response is 4 then do
  91.    @begin
  92.    @show
  93. `\`\  `0"Maybe next time, friend," `2he smiles.
  94. `\`k
  95.    @drawmap
  96.    @update
  97.    @closescript
  98.    @end
  99.  
  100.  
  101.   @end
  102. @do saybar
  103. You move to the side to let him pass.
  104.  
  105. @#event1
  106. @do moveback
  107. @do write
  108. `r1
  109. @clearblock 21 21
  110. @do move 3 21
  111. @do write
  112. `r0  `2A hooded figure approaches.  Speak with him? [`0Y`2/`0N`2] :`x
  113. @do readspecial `s01 YN
  114.  
  115. @if `s01 is Y then do
  116.   @begin
  117.   @busy
  118.   @do `p20 random 4 1
  119.   @if `p20 is 1 then `s10 is `+22
  120.   @if `p20 is 2 then `s10 is `+23
  121.   @if `p20 is 3 then `s10 is `+24
  122.   @if `p20 is 4 then `s10 is `+25
  123.  
  124.   @show
  125. `r0`c  `r1  Dark Trading `r0
  126.  
  127.   `0"Greetings, stranger.  I have a very magical item called a `%`s10
  128.   `0for sale.. would you like to buy it for `$$100`0?"
  129.   @do write
  130. `\`x`x
  131.   @do `v01 is 1
  132.   @choice
  133. >&money 99 Sure, I'll take it
  134. >&money 99 I don't deal with your type.
  135. <&money 100 Sorry, I can't afford that.
  136.   @if response is 1 then do
  137.     @begin
  138.   @if `p20 is 1 then `i22 + 1
  139.   @if `p20 is 2 then `i23 + 1
  140.   @if `p20 is 3 then `i24 + 1
  141.   @if `p20 is 4 then `i25 + 1
  142.     @do money - 100
  143.   @show
  144. `\`\  `0"Nice doing business with you," `2the dark trader laughs evilly as
  145.   he hands you the `%`s10`2.
  146. `\`k
  147.     @drawmap
  148.     @update
  149.     @closescript
  150.     @end
  151.  
  152.   @if response is 2 then do
  153.    @begin
  154.    @show
  155. `\`\  `0"You are making a mistake.." `2the dark trader grunts as he leaves.
  156. `\`k
  157.    @drawmap
  158.    @update
  159.    @closescript
  160.    @end
  161.  
  162.    @show
  163. `\`\  `0"Maybe next time.." `2the dark trader grunts as he leaves.
  164. `\`k
  165.    @drawmap
  166.    @update
  167.   @closescript
  168.  
  169.  @end
  170.  
  171. @do saybar
  172. You move to the side to let him pass.
  173.  
  174.  
  175.  
  176.  
  177.  
  178. @#done
  179.